package org.docshare.view;

import android.graphics.Paint;
import android.graphics.Typeface;
import android.graphics.Paint.Style;

public class PaintHelper {
	public static  Paint getNormalPaint(int text_sz,int color)
	{
	    Paint paint = new Paint();
		paint.setStrokeWidth(2);
	    paint.setColor(color);  
	    paint.setStyle(Style.FILL);  
	    paint.setAntiAlias(true); // �������   
	    paint.setFlags(Paint.ANTI_ALIAS_FLAG); // �������
	    paint.setTypeface(Typeface.DEFAULT);
	    paint.setTextSize(text_sz);
	    return paint;
	}
	public static  Paint getBoldPaint(int text_sz,int color)
	{
	    Paint paint = new Paint();
		paint.setStrokeWidth(2);
	    paint.setColor(color);  
	    paint.setStyle(Style.FILL);  
	    paint.setAntiAlias(true); // �������   
	    paint.setFlags(Paint.ANTI_ALIAS_FLAG); // �������
	    paint.setTextSize(text_sz+1);
	    paint.setTypeface(Typeface.DEFAULT_BOLD);
	    return paint;
	}
	public static Paint getDrawPaint(int linew,int color)
	{
	    Paint paint = new Paint();
		paint.setStrokeWidth(linew);
	    paint.setColor(color);  
	    paint.setStyle(Style.FILL);  
	    paint.setAntiAlias(true); // �������   
	    paint.setFlags(Paint.ANTI_ALIAS_FLAG); // �������
	    paint.setTypeface(Typeface.DEFAULT);
	    paint.setTextSize(14);
	    return paint;		
	}
	public static Paint getBorderPaint(int linew,int color)
	{
	    Paint paint = new Paint();
		paint.setStrokeWidth(linew);
	    paint.setColor(color);  
	    paint.setStyle(Style.STROKE);  
	    paint.setAntiAlias(true); // �������   
	    paint.setFlags(Paint.ANTI_ALIAS_FLAG); // �������
	    paint.setTypeface(Typeface.DEFAULT);
	    paint.setTextSize(14);
	    return paint;		
	}
}
